package com.peaker.advertisingpro.db.dao

import androidx.room.*

@Dao
interface BaseDao<T> {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertAll(list: List<T>?)

    @Delete
    fun delete(element: T)

    @Delete
    fun deleteList(list: List<T>?)

    @Delete
    fun deleteSome(vararg el: T)

    @Update
    fun update(e: T)

}